﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Standard
{
    /// <summary>
    /// 当前客户端持久化上下文
    /// </summary>
    public class Current
    {
        #region 用户相关上下文
        /// <summary>
        /// 用户是否存在值
        /// </summary>
        public bool HasUserInfo
        {
            get
            {
                return !string.IsNullOrEmpty(UserInfo.Name);
            }
        }

        /// <summary>
        /// 当前用户信息
        /// </summary>
        public UserInfoImplement UserInfo { get { return new UserInfoImplement(); ; } }

        #endregion

        public RentalCarImplement RentalCar { get { return new RentalCarImplement(); } }
    }
}
